<?php
$libdir = dirname(__FILE__);
function __autoload($name)
{
    if(file_exists("{$libdir}/{$name}.php"))
    {
        include_once("{$libdir}/{$name}.php");
    }
}
class lib{
	/**
	 * The basic library. implements the methods that should be loaded by any other classes
	 */
	public static function main(){
		echo "This file is not for view";
	}
	/** 
	 * Convert the current element to a HTML code. This should be allways overridden
	 */
	public function toHtml(){
		return __CLASS__;
	}
}